package com.anfeng.cms.domain.device;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴朋
 * @since 2019-07-15
 */
@TableName("af_white_list")
public class AfWhiteList extends Model<AfWhiteList> {

    private static final long serialVersionUID = 1L;

    /**
     * 白名单id
     */
	private String id;
    /**
     * 名称
     */
	private String name;
    /**
     * 版本号
     */
	private String version;
    /**
     * 设备id
     */
	@TableField("d_id")
	private Integer dId;
    /**
     * 设备场所
     */
	@TableField("d_address")
	private String dAddress;
    /**
     * 来源
     */
	private Integer source;
    /**
     * 数据状态（1 正常 2 逻辑删除）
     */
	private Integer state;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("modified_time")
	private Date modifiedTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Integer getdId() {
		return dId;
	}

	public void setdId(Integer dId) {
		this.dId = dId;
	}

	public String getdAddress() {
		return dAddress;
	}

	public void setdAddress(String dAddress) {
		this.dAddress = dAddress;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "AfWhiteList{" +
			"id=" + id +
			", name=" + name +
			", version=" + version +
			", dId=" + dId +
			", dAddress=" + dAddress +
			", source=" + source +
			", state=" + state +
			", createTime=" + createTime +
			", modifiedTime=" + modifiedTime +
			"}";
	}
}
